package com.gxa.modules.app.outpatient.reportqueries.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.app.outpatient.reportqueries.mapper.ReportQueriesMapper;
import com.gxa.modules.app.outpatient.reportqueries.service.ReportQueriesService;
import com.gxa.modules.model.entity.hospital.Indicator;
import com.gxa.modules.model.entity.hospital.PathologyReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


/**
 * 作者 yuanqiufeng
 * Date 2022/11/12
 */
@Service
public class ReportQueriesServiceImpl extends ServiceImpl<ReportQueriesMapper, PathologyReport> implements ReportQueriesService {
    @Autowired
    private ReportQueriesMapper reportQueriesMapper;


    @Override
    public List<PathologyReport> queryAllPathologyReport(Integer checkType, Date createDate, Date endDate) {
        List<PathologyReport> pathologyReportList = this.reportQueriesMapper.queryAllPathologyReport(checkType, createDate, endDate);
        return pathologyReportList;
    }

    @Override
    public List<Indicator> queryAllById(Integer patientId, Integer type) {
        List<Indicator> indicatorList = this.reportQueriesMapper.queryAllById(patientId, type);
        return indicatorList;
    }

    @Override
    public PathologyReport query(Integer id) {
        PathologyReport pathologyReport = this.reportQueriesMapper.query(id);
        return pathologyReport;
    }
}
